<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	    		xmlns:ui="http://java.sun.com/jsf/facelets"
	  			xmlns:h="http://java.sun.com/jsf/html"
	  			xmlns:f="http://java.sun.com/jsf/core"
	  			xmlns:s="http://jboss.com/products/seam/taglib"
                xmlns:a="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
				template="template.xhtml">

<ui:define name="page-name">
	<h:outputText value="Ativos"/>
</ui:define>

<!-- content -->
<ui:define name="content">

<div class="section">
	<h:form id="bookings">
		<s:button
			id="voltar"
			value="Voltar"
			view="/ativos.xhtml"
			propagation="end"/>
	</h:form>
</div>

<div class="section">
<h:form id="criarCarteira">
	<h:panelGrid columns="2">
		<h:outputText value="nome" />
		<h:inputText value="#{ativoHome.instance.nome}" />
		
		<h:outputText value="simbolo" />
		<h:inputText value="#{ativoHome.instance.simbolo}"  required="true" />
		
		<h:outputText value="Importar carga inicial?" />
		<h:selectBooleanCheckbox value="#{ativoHome.importar}" />
		
		<h:outputText value="Carga Inicial" />		
		<rich:calendar value="#{ativoHome.instance.dataCargaInicial}"
                        datePattern="dd/MM/yyyy"
                        showApplyButton="true"
						cellWidth="24px"
						cellHeight="22px"
						style="width:200px"
						enableManualInput="false"
						 required="true" />
                        
	</h:panelGrid>
	
	<h:commandButton action="#{ativoHome.persist}" value="Salvar" />
</h:form>
</div>

</ui:define>

</ui:composition>
